package com.woniuxy.meal.service;

import com.alipay.api.AlipayApiException;
import com.woniuxy.meal.entity.DietOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.meal.form.AddOrderForm;
import com.woniuxy.meal.service.dto.OrderInfoDto;

import java.util.List;

/**
 * <p>
 * 外卖订单 服务类
 * </p>
 *
 * @author zz
 * @since 2023年06月12日
 */
public interface DietOrderService extends IService<DietOrder> {

    OrderInfoDto addOrder(AddOrderForm adf, Long userId) throws Exception;

    String payOrder(String num) throws AlipayApiException;

    void payCallback(DietOrder orderInfo);
    String payOrderCheck(String num);

    void cancelOrder(String oderNum, Long userId);

    List<OrderInfoDto> showOrderByUserId(Long userId) throws Exception;
}
